<button>一起看电影吧</button>
<ul></ul>

<script src="./axios.js"></script>
<script>
    document.querySelector('button').onclick = function() {
        get(
            'https://m.maizuo.com/gateway',
            {
                cityId:320100,
                pageNum:1,
                pageSize:10,
                type:1,
                k:6525244
            },
            'json',
            {
                'X-Client-Info':'{"a":"3000","ch":"1002","v":"5.2.0","e":"165292675792371861635073","bc":"110100"}',
                'X-Host':'mall.film-ticket.film.list',
                'X-Requested-With':'XMLHttpRequest',
                'X-Token':'undefined'
            }
        )
        .then(res => {
            document.querySelector('ul').innerText = ''
            res.data.films.forEach(item => {
                let liObj = document.createElement('li')
                liObj.innerHTML = `
                ${item.name}<br/>
                <img src='${item.poster}' width = 200 />
                `
                document.querySelector('ul').appendChild(liObj)
            });
        })
    }
</script>